/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.sender;

import com.doc.sender.ui.LoginFrame;
import java.util.prefs.Preferences;

/**
 *
 * @author parent
 */
public class mainWorkflow {
    private boolean loginStatus;
    private int UserID;
    Preferences GlobalSetting;

    public mainWorkflow() {
        GlobalSetting = Preferences.userRoot().node(this.getClass().getName());
        loginStatus=false;
        GlobalSetting.putBoolean("Online", loginStatus);
         
        new LoginFrame().setVisible(true);
       
    }
    
    public int getUserID() {
        return UserID;
    }

    public void setUserID(int UserID) {
        this.UserID = UserID;
    }
    public boolean isOnline() {
        return loginStatus;
    }

    public void setLoginStatus(boolean Status) {
        GlobalSetting.putBoolean("Online", Status);
        this.loginStatus = Status;
    }
    public static void main(String args[]) {
        
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new mainWorkflow();
            }
        });
        
        
    }
}
